package com.accp.taobao.util;

import com.accp.taobao.model.AirConditioner;

import java.util.Comparator;

public class CompareSalesNum implements Comparator<AirConditioner> {
    @Override
    public int compare(AirConditioner o1, AirConditioner o2) {
        //递减排序
        return (o2.getSalesNum()-o1.getSalesNum());
    }
}
